Autodesk.AutoCAD.DatabaseServices Namespace > RasterImage Class > RasterImage Methods > ImageSize Method
RasterImage.ImageSize Method
Description

 

the raw image size in pixels. (The image size is also available directly from the RasterImageDef object.) 

Under certain rare conditions the cached value will temporarily be different from the value kept in the RasterImageDef object (for example, immediately after the image size has been changed by a raster edit operation but before the RasterImage entity cache is updated). 

If bGetCachedValue is false (default), the image size request is forwarded to the associated RasterImageDef object. If that object can't be opened, then a locally cached value is used. If bGetCachedValue is true, the function is forced to return the cached value.

Visual Basic
Public virtual Function ImageSize(
    getCachedValue As [MarshalAs(UnmanagedType.U1)] bool
) As Vector2d
C#
public virtual Vector2d ImageSize(
    [MarshalAs(UnmanagedType.U1)] bool getCachedValue
);
Parameters
Parameters 
Description 
[MarshalAs(UnmanagedType.U1)] bool getCachedValue 
Input Boolean indicating whether the cached should be used 
Links
   Comments?